Emorie D Beck
From last week:
ggplot() and aes()
scale_x_continuous() and scale_fill_manual()
geom_point() and geom_line()
facet_wrap() and facet_grid()
theme_classic()
theme() (legend, strip, axis, plot, panel)# A tibble: 360,553 × 9
year SID marital chldbrth gender yearBrth mortality job age
<dbl> <dbl> <dbl> <dbl> <dbl+lbl> <dbl> <dbl> <dbl> <dbl>
1 1999 901 4 0 2 [[2] Female] 1951 0 NA 48
2 1999 1202 3 0 2 [[2] Female] 1913 0 NA 86
3 1999 1901 2 0 2 [[2] Female] 1948 0 NA 51
4 1999 2301 2 0 1 [[1] Male] 1946 0 NA 53
5 1999 2302 2 0 2 [[2] Female] 1946 0 NA 53
6 1999 2501 2 0 2 [[2] Female] 1924 0 NA 75
7 1999 2801 2 0 1 [[1] Male] 1947 0 NA 52
8 1999 2802 2 0 2 [[2] Female] 1956 0 NA 43
9 1999 910603 2 0 1 [[1] Male] 1959 0 NA 40
10 1999 2901 2 0 1 [[1] Male] 1932 0 NA 67
# … with 360,543 more rows
ggplot2 doesn’t specifically support pie chartscoord_polar()
geom_bar() + coord_polar()
PSC 290 - Data Visualization